/* 
 * File:   encode.h
 * Author: grm
 *
 * Created on 21 février 2011, 21:33
 */

#ifndef ENCODE_H
#define	ENCODE_H

#ifdef	__cplusplus
extern "C" {
#endif

    /* Cinema format */
#define CINEMA_2K_24 0
#define CINEMA_2K_48 1
#define CINEMA_4K_24 2

    /* Format des images */
#define J2K_CFMT 0
#define JP2_CFMT 1
#define JPT_CFMT 2

#define PXM_DFMT 10
#define PGX_DFMT 11
#define BMP_DFMT 12
#define YUV_DFMT 13
#define TIF_DFMT 14
#define RAW_DFMT 15
#define TGA_DFMT 16
#define PNG_DFMT 17


#define CINEMA_24_CS 1302083            /*Codestream length for 24fps*/
#define CINEMA_48_CS 651041             /*Codestream length for 48fps*/
#define COMP_24_CS 1041666              /*Maximum size per color component for 2K & 4K @ 24fps*/
#define COMP_48_CS 520833              /*Maximum size per color component for 2K @ 48fps*/
  
  typedef struct raw_cparameters {
    /** width of the raw image */
    int rawWidth;
    /** height of the raw image */
    int rawHeight;
    /** components of the raw image */
    int rawComp;
    /** bit depth of the raw image */
    int rawBitDepth;
    /** signed/unsigned raw image */
    bool rawSigned;
  } raw_cparameters_t;
  

#ifdef	__cplusplus
}
#endif

#endif	/* ENCODE_H */

